package source.view;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JComponent;
import javax.swing.JFrame;

import source.controller.CustomKeyFileManager;

/**
 * The ActionListener for the MainScreen's menu bar.
 * @author Steve
 *
 */
public class MainScreenMenuListener implements ActionListener{
	private MainScreen frame;
	
	public MainScreenMenuListener(MainScreen frame){
		this.frame = frame;
	}

	public void actionPerformed(ActionEvent e) {
		JComponent comp = (JComponent) e.getSource();
		if(comp.getName().equals("ConfigKeyboard")){
			frame.showKeypadConfigurationDialog();
		}
	}
	
}
